<template>
    <div class="flex bottomBox">
        <div class="boxShadow authorCom">
            <p class="boldTitle">删除地图</p>
            <div class="modulContent">是否删除{{this.$store.state.delMapName}}地图?</div>

            <div class="flex formBtns">
                <el-button size="small" @click="cancelDel">取消</el-button>
                <el-button size="small" type="primary" @click="subDelMap">删除</el-button>
            </div>
        </div>
    </div>
</template>

<script>
import { hideOtherModule, DeleteMap } from '../js/methods'
export default {
    name: 'deleteMap',
    components:{

    },
    data(){
        return{
           
        }
    },
    methods:{
      subDelMap:function(){
        DeleteMap(this.$store.state.delMapName);
        this.$store.commit('switchDelMap',false); 
      },

      cancelDel:function(){
          hideOtherModule()
      }
    },

    //属性监听
    watch:{
       
    }

}
</script>

<style scoped lang="less">
 .authorCom{
     background-color: #ffffff;
     border-top-left-radius: 4px;
     border-top-right-radius: 4px;
     padding: 10px;
     text-align: left;
     font-size: 14px;
     width: 100%;
 }
 .boldTitle{
     font-weight: bold;
     margin-bottom: 7px;
 }
 .modulContent{
     color: #666666;
     margin: 30px 0 ;
 }
 .formBtns{
     padding: 0 5px;
     margin-top: 15px;
     button{
         width: 100%;
     }
 }
</style>